package com.qipay.sp.excutor.zhangxin;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import com.qipay.sp.excutor.yitong.YtAlipayWapExcutor;
import com.qipay.sp.excutor.yitong.YtWxNativeExcutor;
import com.qipay.sp.excutor.yitong.YtWxTradeQueryExcutor;
import com.qipay.sp.excutor.yitong.YtWxWapExcutor;
import org.springframework.stereotype.Component;

//掌心付
@Component
public class ZxFactory implements ExcutorFactory {

    @Override
    public AbstractExcutor createWxNativeExcutor() {
        return (AbstractExcutor) SpringContextUtil.getBean(ZxWxNativeExcutor.class);
    }
    @Override
    public AbstractExcutor createAlipayNativeExcutor() {
        return (AbstractExcutor) SpringContextUtil.getBean(ZxAliNativeExcutor.class);
    }
    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (AbstractExcutor) SpringContextUtil.getBean(ZxAliWapExcutor.class);
    }


}
